//
//  UIColor+RgbAndString.h
//  BlueToothProject
//
//  Created by foshou on 2017/3/2.
//  Copyright © 2017年 yxw. All rights reserved.
//

#import <UIKit/UIKit.h>

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue &0xFF00) >>8))/255.0 blue:((float)(rgbValue &0xFF))/255.0 alpha:1.0]

@interface UIColor (RgbAndString)

// 将16进制字符串转换成uicolor
+(UIColor*)toUIColorByStr:(NSString*)colorStr;

// 注意转换出来的字符串不带＃号
+(NSString*)toStrByUIColor:(UIColor*)color;

+(NSString *)ToHex:(int)tmpid;
@end
